import React from 'react'
import {Route,BrowserRouter as Router,Redirect} from 'react-router-dom'
import 'antd/dist/antd.css';


import Home from './pages/Home/index'
import My from './pages/My/index'


function App() {
  return (
    <Router>
    <div style={{height:'100%'}}>
      <Route exact path="/home" component={Home}></Route>
      <Route exact path="/" render={()=>{<Redirect to="/home" />}}></Route>
      <Route exact path="/my" component={My}></Route>
    </div>
    </Router>
  );
}

export default App;
